package ModelLayer;

/**
 * Class for objects of Customer
 * 
 * @author (AF, RA, KP, RL) 
 * @version (2012.06.05)
 */
public class Customer extends Person
{
    private String customerType;
    private double accountBalance;

    /**
     * Constructor for objects of class Customer
     * 
     * @param name name of Customer as String 
     * @param address address of Customer as String
     * @param phoneNo phoneNo of Customer as String
     * @param email email of Customer as String
     * @param customerType customerType of Customer as String
     * @param city city of Customer as String
     * @param postalCode postalCode of Customer as int
     */
    public Customer(String name, String address, String phoneNo, String email, 
                    String customerType, String city, int postalCode)
    {
        super(name, address, phoneNo, email, city, postalCode);
        this.customerType = customerType;
        this.accountBalance = 0.0;
    }

    /**
     * sets customerType of customer
     * 
     * @param customerType customerType as String 
     * 
     * @return none
     */
    public void setCostumerType(String customerType)
    {
        this.customerType = customerType;
    }
    
    /**
     * sets accountBalance of customer
     * 
     * @param accountBalance accountBalance as double 
     * 
     * @return none
     */
    public void setAccountBalance(double accountBalance)
    {
        this.accountBalance = accountBalance;
    }
    
    /**
     * finds customer type of customer
     * 
     * @param none 
     * 
     * @return customerType as String
     */
    public String getCustomerType() 
    {
        return this.customerType;
    }
    
    /**
     * finds accountBalance of customer
     * 
     * @param none 
     * 
     * @return accountBalance as double
     */
    public double getAccountBalance() 
    {
        return this.accountBalance;
    }
}
